package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 权限对象 tb_power
 * 
 * @author ruoyi
 * @date 2023-04-23
 */
public class TbPower extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限编号 */
    private Long powerId;

    /** 权限名称 */
    @Excel(name = "权限名称")
    private String powerName;

    /** 父级编号 */
    @Excel(name = "父级编号")
    private Long parentId;

    /** 权限编码 */
    @Excel(name = "权限编码")
    private String powerCode;

    public void setPowerId(Long powerId) 
    {
        this.powerId = powerId;
    }

    public Long getPowerId() 
    {
        return powerId;
    }
    public void setPowerName(String powerName) 
    {
        this.powerName = powerName;
    }

    public String getPowerName() 
    {
        return powerName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setPowerCode(String powerCode) 
    {
        this.powerCode = powerCode;
    }

    public String getPowerCode() 
    {
        return powerCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("powerId", getPowerId())
            .append("powerName", getPowerName())
            .append("parentId", getParentId())
            .append("powerCode", getPowerCode())
            .toString();
    }
}
